package DianMing;

import java.util.*;

public class Test {
    public static void main(String[] args) {
        ArrayList<String> list1 = new ArrayList<>();
        ArrayList<String> list2 = new ArrayList<>();
        ArrayList<String> list3 = new ArrayList<>();
        HashMap<String,ArrayList<String>> hashMap = new HashMap<>();

        Collections.addAll(list1,"q","w","e");
        Collections.addAll(list2,"q1","w1","e1");
        Collections.addAll(list3,"q2","w2","e2");


        hashMap.put("shanxi",list1);
        hashMap.put("beijing",list2);
        hashMap.put("hebei",list3);


        Set<Map.Entry<String, ArrayList<String>>> entries = hashMap.entrySet();
        for (Map.Entry<String, ArrayList<String>> entry : entries) {
            String key = entry.getKey();
            ArrayList<String> list = entry.getValue();

            for (String s : list) {
                System.out.print(s);

            }

        }

    }
}
